package com.newly.api.business.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@Api(tags = "MQTT-OTA配置(暂不对接)")
@FeignClient(path = ServerUriConstant.NEWLY_BUSINESS_MQTT_OTA, name = ServerUriConstant.NEWLY_BUSINESS_SERVICE_NAME)
public interface MQTTOTAClient {

    @ApiOperation("获取所有串口配置")
    @GetMapping("/setOTAByFile")
    R setOTAByFile(String productKey,@RequestParam("file") MultipartFile file);

    @ApiOperation("获取所有串口配置")
    @GetMapping("/setOTAByHttp")
    R setOTAByHttp(String productKey, String fileUrl);


}
